from selenium import webdriver
from selenium.webdriver.common.by import By

# CSS选择器   直接使用id选择器  参照id="username"

driver = webdriver.Chrome()
driver.get("http://192.168.46.5:18089/login")
driver.find_element(By.CSS_SELECTOR, '#username').send_keys("XTGLY")
driver.find_element(By.CSS_SELECTOR, '#password').send_keys("123456")
driver.find_element(By.CSS_SELECTOR, '#signIn').click()